home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 April / Software of the Month Club 1996 April.iso / mac / Education / LogoMation 1.1.1 ƒ / Documentation ƒ / LogoMation's Tutorial / LogoMation's Tutorial.rsrc / PICT_27.png < prev    next >
Portable Network Graphic  |  1995-09-29  |  108KB  |  816x1056  |  8-bit (256 colors)
OCR: // draw 20 X 20 square Repeat Forward Right 90 It is not too diffi .cult to understand what this program does, but pl .ease try to do it be fore you conti .nue reading Got it? reall simple program: moves 30 pixels to the right, then draws pixel square, then moves 30 again and draws 1.0 1.0 and then does this yet another time and draws 20 20 square You can run you want, just to see how works I I you read the program second time chances are that you will find it bor ing After all does almost the exact same thing three imes The only thing that different each time is the size of the square just ouo number. Surely there wav to write the program wi thout hav ino repli .cate the code and modi slightly every copy This, the way, is what every good progr ammer always trying to do write programs that ...